<?php
/* remember password */
$user = '';
$pass = '';
$check = '';

if ($this->input->cookie('remem_user')) {
	$user = $this->input->cookie('remem_user');
	$pass = $this->input->cookie('remem_pass');
	$check = "checked";
}
/* end of remember password */
$my_userLabel = array('class' => 'control-label', 'name' => 'username');
$my_passLabel = array('class' => 'control-label', 'name' => 'password');
$my_user = array('class' => 'input-block-level', 'name' => 'txt_username', 'value' => $user);
$my_pass = array('class' => 'input-block-level', 'name' => 'txt_password', 'value' => $pass);
$my_submit = array('id' => 'btn-login', 'class' => 'btn btn-infor', 'value' => 'LOGIN', 'name' => 'btn_signin');

$my_logo = array(
	'src' => 'images/logo.png',
	'alt' => 'logo',
	'class' => 'my-logo'
);
echo img($my_logo);
?>
<div id="login-style">
	<?php
	echo form_open('main/login/', array('class' => 'form-horizontal', 'id' => '', 'name' => 'frm_login'));
	echo heading('Login Form', 3, 'class="form-signin-heading"');
	?>
	<div class="control-group">
		<?php echo form_label('Username :', 'username', $my_userLabel); ?>
		<div class="controls">
			<?php
			echo form_input($my_user);
			?>
		</div>
	</div>
	<div class="control-group">
		<?php echo form_label('Password &nbsp;:', 'password', $my_passLabel); ?>
		<div class="controls">
			<?php echo form_password($my_pass); ?>
		</div>
	</div>
	<div class="control-group">
		<div class="controls">
			<label for="remember">
				<input type="checkbox" name="remember" value="check" class="checkbox" <?php echo $check; ?> />&nbsp;
				<p class="memberme">Remember me !</p></label>
				<?php
				echo form_submit($my_submit);
				?>
		</div>
		<?php
		echo anchor('main/reset_pass/', 'Can\'t access your account?', 'id="forget-pass" data-toggle="modal"');
		?>
	</div>
	<?php
	echo form_close();
	?>
</div>